package com.chuantou.yuba.api.to;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

public class StartAdTO implements Parcelable {
	@SerializedName("id")
	private long id;
	@SerializedName("img")
	private String image;

	private long dataCount;

	public StartAdTO() {
	}

	public StartAdTO(Parcel source) {
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {

	}

	public static final Creator<StartAdTO> CREATOR = new Creator<StartAdTO>() {

		@Override
		public StartAdTO[] newArray(int size) {
			return new StartAdTO[size];
		}

		@Override
		public StartAdTO createFromParcel(Parcel source) {
			return new StartAdTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public long getDataCount() {
		return dataCount;
	}

	public void setDataCount(long dataCount) {
		this.dataCount = dataCount;
	}

	public String toGsonString() {
		Gson gson = new Gson();
		return gson.toJson(this);
	}

}
